//引入mockjs
const Mock = require('mockjs')
// 获取 mock.Random 对象
// const Random = Mock.Random

Mock.mock(/user\/login\w*/i, (req) => {
  // eslint-disable-next-line no-debugger
  debugger
  let { userName, password } = req
  if (userName === 'admin' && password === '123') {
    return 'S'
  } else {
    return 'E'
  }

})